﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace Gollie.Administration.Service.Tasks
{
	public class TaskProperties : Dictionary<string, TaskItemProperties>
	{
		public TaskProperties(XmlNode taskNode)
		{
			foreach (XmlNode itemNode in taskNode.SelectNodes("item"))
			{
				string name = itemNode.Attributes["name"].Value;
				this[name] = new TaskItemProperties(itemNode);
			}
		}
	}
}
